pipeline {
    agent any
    parameters {
      //定义了两个参数，一个是string类型，一个是choice类型
      string name: 'VERSION', defaultValue: '1.0.0', description: ' '
      choice choices: ['dev', 'test', 'uat'], description: 'env names', name: 'ENVNAME'
    }
    stages {
        stage('build') {
          steps {
            echo "${params.ENVNAME}"
            echo "${params.VERSION}"
          }
        }
    }
}
